<?php $sponsors = Doctrine::getTable('BbTeams')->fetchall();?>

<div class="gn_box">
  <div id="gn-widget-head-7" class="gn_box_head">
    <div class="gn_box_head_title" style="padding-left:0;color:#000;">
      <?php echo link_to('Хамтрагч 	байгууллагууд', '@homepage', array('style'=>'color:#000;'))?>
    </div>
  </div>

  <div style="padding:0;width:1000px;height:95px;position:relative;">
    <div class="infiniteCarousel">
      <div style="overflow:hidden;position:relative;height:95px;min-height:7em;width:840px;" class="wrapper sponsors" id="videos-slider">
          <ul>
            <?php foreach ($sponsors as $sponsor):?>
            <?php if($sponsor->getDefImg()) { ?>
               <li class="first"><div class="company">
                	<div style="position:relative;" class="logo">
                		<?php echo image_tag("/uploads/team/".$sponsor->getDefImg(), array('alt'=>$league, 'style'=>'max-width:100px;max-height:100px;'))?>        		
                	</div>
                </div></li><!--company-->	
            <?php } endforeach?>
          </ul>
      </div><!--wrapper-->
    </div><!--infiniteCarousel-->
  </div>
</div>

<br clear="all">
<br clear="all">
<br clear="all">
